#include <a02_task3/control_cmd.h>
#include <ros/ros.h>
#include <time.h>
int main(int argc, char *argv[]) {
  ros::init(argc, argv, "control_car_remote_command");
  ros::NodeHandle n;
  ros::Publisher cmd_pub = n.advertise<a02_task3::control_cmd>("car_control_cmd",10);
  ros::Rate loop_rate(10);
  while(ros::ok){
a02_task3::control_cmd msg;
std::cout<<"please input linear velocity"<<std::endl;
std::cin>>msg.linear_velocity;
std::cout<<"please input angular velocity"<<std::endl;
std::cin>>msg.angular_velocity;
cmd_pub.publish(msg);
loop_rate.sleep();
}
  
  return 0;
} 
